package com.qiezikaka.kaka.net.api;

/**
 * @Description api初始化工厂类
 */
public class CTFactory {

    private static ApiService mControlApi = null;
    private static final Object WATCH = new Object();

    public CTFactory() {
    }

    public static ApiService getControlApi() {
        synchronized (WATCH) {
            if (mControlApi == null) {
                mControlApi = new ControlClient().getControlApi();
            }
        }
        return mControlApi;
    }
}
